package com.atguigu.map;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: IDEAcode
 * @description:
 * @author: Mr.zjx
 * create: 2021-08-13-19-39
 **/
public class Test {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        list.add("张三");
        list.add("李四");
        list.add("王五");
        list.add("赵六");
        String[] strs = list.toArray(new String[list.size()]);
        for (String s : strs){
            System.out.println(s);
        }
    }
}
